<!doctype html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/common.css" />
		<link rel="stylesheet" type="text/css" href="../../css/aui.css" />

    <style>


        #header_top {
            background: #2997e4;
            padding-top: 25px;
        }
    </style>
  </head>
  <body>
    <div id="wrap">
      <!-- 第三头部 -->
      <header id="header_top" class="aui-bar aui-bar-nav" >

        <a class="aui-pull-left"  onclick="goback()">
            <span class="aui-iconfont aui-icon-left"></span>
        </a>
        <div class="aui-title" id="title">

      </div>
    			<a class="aui-pull-right" onclick="">
    	        进入群聊
    	    </a>
    	</header>
    </div>
  </body>
  <script type="text/javascript" src="../../script/api.js"></script>
  <script type="text/javascript">
    function goback () {
      api.closeWin({name:api.pageParam.name});
    }



    // 完成首页初始化
    apiready = function(){
      var thridHeader = $api.byId('thridHeader');
      $api.fixStatusBar(thridHeader);
      var thridHeader = $api.offset(thridHeader);

      var type = api.pageParam.name;

      $api.byId('title').innerHTML = api.pageParam.title;
      api.openFrame ({
        name: type,
        url: './' + type + '.html',
        rect:{
          x:0,
          y:thridHeader.h,
          w:'auto',
          h:'auto'
        },
        bounces: false,
        delay:200
      })
    };
  </script>
</html>
